package com.yixin.hospital.entity.dto.req.dept;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

@ApiModel("新增部门请求体")
@Data
public class TempDeptAddReqDTO {

    @ApiModelProperty("部门id")
    @NotNull(message = "部门id不能为空")
    private Long deptId;

    @ApiModelProperty("部门id")
    @NotNull(message = "工作地点id不能为空")
    private Long workAddressId;

    @ApiModelProperty("有效期")
    @NotNull(message = "有效期不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date expiration;

    @ApiModelProperty(value = "审批人列表", example = "[1,1]")
    @NotNull(message = "审批人列表不能为空")
    List<Long> auditUserIds;

}
